package com.weilan.ark3.controller;

import com.weilan.ark3.entity.FrontData;
import com.weilan.ark3.service.FrontDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("weilan/system/data")
public class SendMessageController {


    @Autowired
    FrontDataService frontDataService;

    /*@Resource
    private WebSocket webSocket;*/

    @PostMapping("/frontData")
    public void sendMessageToFront(@RequestBody FrontData frontData) {
        frontDataService.read(frontData);
    }

    @PostMapping("/test")
    public void webxocketTest() throws InterruptedException {
    }


}
